public class Main {
	public static void main(String[] args ) {	
		int i,j,m;
		float b[]= {3,2,4,5,6,7,8,9,1,15};
		float a;
		for(i=0;i<10;i++)
			{
				a=b[i];
				m=i;
				for(j=i+1;j<10;j++)
					{	
						if(b[j]<a)
						{
							a=b[j];	
							m=j;
						}
					}
				b[m]=b[i];
				b[i]=a;
			}
		for(j=0;j<10;j++)
			System.out.print(b[j]+"  ");	
	}		 
}